package cn.stylefeng.guns.modular.fruits.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.fruits.entity.FruitsBasicGoods;
import cn.stylefeng.guns.modular.fruits.model.params.FruitsBasicGoodsParam;
import cn.stylefeng.guns.modular.fruits.model.result.FruitsBasicGoodsResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 商品管理 服务类
 */
public interface FruitsBasicGoodsService extends IService<FruitsBasicGoods> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    void add(FruitsBasicGoodsParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    void delete(FruitsBasicGoodsParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    void update(FruitsBasicGoodsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    FruitsBasicGoodsResult findBySpec(FruitsBasicGoodsParam param,Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    List<FruitsBasicGoodsResult> findListBySpec(FruitsBasicGoodsParam param,Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-14
     */
     LayuiPageInfo findPageBySpec(FruitsBasicGoodsParam param,String condition,Long operateId);

}
